package org.scmpatrol.scm.action;

import java.io.Serializable;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.scmpatrol.scm.SCMPath;

@Entity
@DiscriminatorValue("A")
public class SCMDeleteAction extends SCMAction implements Serializable {

	private static final long serialVersionUID = 3883943022099825785L;

	/**
	 * The suppressed content
	 */
	private String content;

    public SCMDeleteAction() {
        super();
    }

	public SCMDeleteAction(SCMPath path) {
		super(path);
	}

	@Override
	public SCMActionTypeEnum getActionType() {
		return SCMActionTypeEnum.DELETE;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
